/****************** Exercise 11 *****************
 * Turn the AllTheColorsOfTheRainbow example into
 * a program that compiles and runs.
 ************************************************/

package thinkinginjava.everything_is_an_object;


class AllTheColorsOfTheRainbow{
    int anIntegerRepresentingColors;
    void changeTheHueOfeTheColor(int newHue){
        this.anIntegerRepresentingColors = newHue;
    }
}
/**
 *
 * @author vlad
 */
public class Exercise11 {
    public static void main(String [] args){
        AllTheColorsOfTheRainbow color = new AllTheColorsOfTheRainbow();
        System.out.println("curColor = " + color.anIntegerRepresentingColors);
        color.changeTheHueOfeTheColor(5);
        System.out.println("curColor = " + color.anIntegerRepresentingColors);

    }
    
    
}
